package com.paginasenlanube.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "dataType")
public class DataType implements Serializable {
	
/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

private long id;

private String title;

private String lead;

private String paragraph;

private long pageId;
  
private Image image;

@Id
@GeneratedValue
@Column(name = "id")
public long getId() {
    return id;
}

public void setId(long value) {
    id = value;
}

public String getTitle() {
    return title;
}

public void setTitle(String value) {
    title = value;
}

public String getLead() {
    return lead;
}

public void setLead(String value) {
    lead = value;
}

public String getParagraph() {
    return paragraph;
}

public void setParagraph(String value) {
    paragraph = value;
}

@OneToOne(cascade = CascadeType.ALL)
public Image getImage() {
	return image;
}

public void setImage(Image image) {
	this.image = image;
}

public long getPageId() {
	return pageId;
}

public void setPageId(long pageId) {
	this.pageId = pageId;
}

}
